//
//  MCDatePlayReusableView.swift
//  MCBodyBuildingPro
//
//  Created by Renlvshijie on 2023/6/4.
//

import UIKit
import QMUIKit
import SnapKit



class MCDatePlayReusableView: UICollectionReusableView {
    
    public var yearMonthLabel:QMUILabel!
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.createYearMonth()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func createYearMonth() -> Void {
        self.yearMonthLabel = QMUILabel.init()
        self.yearMonthLabel.text = "2023年06月"
        self.yearMonthLabel.textColor = UIColor.qmui_color(withHexString: "#777D83")
        self.yearMonthLabel.font = UIFont(name: "PingFangSC-Semibold", size: 12)
        self.yearMonthLabel.textAlignment = .left
        self.addSubview(self.yearMonthLabel)
        
        self.yearMonthLabel.snp.makeConstraints { make in
            make.left.equalTo(self.snp.left).offset(16)
            make.centerY.equalTo(self.snp.centerY).offset(0.0)
        }
        
    }
    
}
